package com.base.api.pms;

public class PmsQueryFactory {
    public static PmsPublicSqlQuery getInstance(String calssName) {
        Class class1 = null;
        try {
            class1 = Class.forName(calssName);
            return (PmsPublicSqlQuery) class1.newInstance();
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        } catch (IllegalAccessException e) {
            e.printStackTrace();
        } catch (InstantiationException e) {
            e.printStackTrace();
        }
        return null;
    }
}
